package loan.calc.vo;

import java.util.LinkedHashMap;

public class R extends LinkedHashMap<String, Object> {

    public static R success() {
        return new R("200", "SUCCESS");
    }

    public R(Object code, String msg) {
        put("code", code);
        put("msg", msg);
    }

    public R putValue(String key, Object value) {
        super.put(key, value);
        return this;
    }

}
